<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Modifica Pacchetto</title>
	<link rel="stylesheet" type="text/css" href="../styles/style.css" />
</h:head>
<h:body>
<div id="container">
<div id="box">

<header class="banner">
<span id="titoloPagina"> Scegli il pacchetto da modificare </span>
</header>

<div id="externalborder1">
<p:spacer height="40px" />


<h:form id="form"> 
      
      <p:growl id="growl" showDetail="true" sticky="true" />
  
   <h:panelGroup  rendered="#{param.noIst}">
			<div id="infoAgg" style="text-align: center;"><h:outputText value="Non hai selezionato nessun pacchetto"/><br/>
			</div>
			</h:panelGroup>
			<p:spacer height="40px" /> 
			
			
			
  <div id="externalborderTab">
    <p:dataTable id="packSelection" var="pacchettoDTO" rowKey="#{pacchettoDTO.idPacchetto}" value="#{creazionePacchetto.pacchetti}" paginator="true"
                 selection="#{creazionePacchetto.pacchettoDTO}" selectionMode="single" sortMode="multiple" rows="7" style="text-align:center;">  
  
   		<p:ajax event="rowSelect" update=":form:growl" listener="#{creaViaggio.onRowSelectPacchetto}" />
       
       	<p:column id="idPacchetto" sortBy="idPacchetto" headerText="ID" >  
            #{pacchettoDTO.idPacchetto}  
        </p:column> 
        
        <p:column id="citta" sortBy="citta" headerText="Città" >  
            #{pacchettoDTO.citta}  
        </p:column>  
  
        <p:column id="tipologia" sortBy="tipologia" headerText="Tipologia" >  
            #{pacchettoDTO.tipologia}  
        </p:column>  
 
    
    </p:dataTable>
    </div> 
    	</h:form> 
    	
    	
    	     <p:spacer height="40px"/>
<h:form>
<div id="centerbutton">
<h:commandLink id="registerlink" action="#{creazionePacchetto.ricercaIstanzeMod()}">
<div class="button" id="register">
Aggiungi istanze
</div>
</h:commandLink>
</div>
</h:form> 


    
    </div>
</div>
<div id="push">
</div>
</div>

<div id="footer">
<h:button id="homepage" value="Homepage" outcome="index.xhtml"></h:button>
</div>

</h:body>
</html>